<?php

/**
 * guestbook actions.
 *
 * @package    simpleguestbook-symfony
 * @subpackage guestbook
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 36 2008-09-27 10:43:34Z pascal.martin.pmn $
 */
class guestbookActions extends sfActions
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
  public function executeIndex($request)
  {
        $pageNum = 0;
        $numPerPage = 10;
        $daoComments = new Comment();
        /*if (Zend_Auth::getInstance()->hasIdentity()) {
            $this->view->comments = $daoComments->listFrontForAdmin($pageNum, $numPerPage);
        } else {
            $this->view->comments = $daoComments->listFront($pageNum, $numPerPage);
        }
      */
        
        $this->comments = $daoComments->listFront($pageNum, $numPerPage);
        
        //var_dump($this->comments); die;
        
    $this->name = 'World';
  }
}
